#!/bin/bash

package(){
    mvn clean
    while read line
    do
        mvn  -Dchannel=$line package
    done < $1
}
package $1